{% extends 'base.html' %}
{% block title %}Person listing{% endblock %}

{% block content %}
<h1>Person listing</h1>
<a href="{% url app.views.add_person %}">Create person</a>

<ul>
  {% for person in object_list %}
    <li>
      <a href="{% url app.views.show_person key=person.key %}">{{ person.first_name }} {{ person.last_name }}</a>
      <a href="{% url app.views.edit_person key=person.key %}">Edit</a>
      <a href="{% url app.views.delete_person key=person.key %}">Delete</a>
    </li>
  {% endfor %}
</ul>

<div>
  {% if has_previous %}
    <a href="{% url app.views.list_people %}?page={{ previous }}">&lt;-previous</a>
  {% endif %}
  {% if has_next %}
    <a href="{% url app.views.list_people %}?page={{ next }}">next-&gt;</a>
  {% endif %}
</div>
{% endblock %}
